package com.rd.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author qiufenfen
 * @since 2023-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_equipment")
@ApiModel(value="Equipment对象", description="")
public class Equipment implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "设备编号")
    @TableId(value = "equipment_id", type = IdType.AUTO)
    private Integer equipment_id;

    @ApiModelProperty(value = "设备类型")
    @Excel(name = "设备类型")
    private String equipment_type;

    @ApiModelProperty(value = "生产厂家")
    @Excel(name = "生产厂家")
    private String manufacturer;

    @ApiModelProperty(value = "型号规格")
    @Excel(name = "型号规格")
    private String model_specification;

    @ApiModelProperty(value = "购置日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @Excel(name = "购置日期", width = 20, format = "yyyy-MM-dd")
    private LocalDate purchase_date;


    @ApiModelProperty(value = "购买价格")
    @Excel(name = "购买价格")
    private String purchase_price;

    @ApiModelProperty(value = "安装位置")
    @Excel(name = "安装位置")
    private String installation_location;

    @ApiModelProperty(value = "维修记录")
    @Excel(name = "维修记录")
    private String maintenance_records;

    @ApiModelProperty(value = "报废记录")
    @Excel(name = "报废记录")
    private String scrapping_records;

    @ApiModelProperty(value = "使用状态")
    @Excel(name = "使用状态")
    private String usage_status;










}
